package com.gisuni.sddc.dao;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

import com.gisuni.sddc.util.UtilMethod;

@IocBean
public class AdvQueryDao{
	@Inject
	private Dao dao;

	public List<Map<String, Object>> advQuery(String insertSql,boolean flag) {
		List<Map<String,Object>> list = new ArrayList<Map<String,Object>>();
		if(flag){
			list = UtilMethod.getFromAdvQuerySql(dao, insertSql);
		}else{
			list = UtilMethod.getFromSql(dao, insertSql);
		}
		return list;
	}
}
